import {post} from "../utils/request"
enum Api{
    Login="/login",
}
interface LoginParams{
    username:string;
    password:string
}

function loginApi(data: LoginParams) {
    return post(Api.Login, data)

}
export {loginApi}